package com.zh.systemUtils;

import java.io.Serializable;
import java.util.List;

/**
 * 除比率外，所有数据均为proc或对应查询命令的原生数据。
 *
 * @author 张辉
 */
public class ResourceUsageInfoBean implements Serializable {

	//网络数据相关参数
    private Long receiveBytes;          //接收的字节总数
    private Long receivePackets;        //接收的数据包总数
    private Long receiveErrs;           //接收的错误总数
    private Long receiveDrop;           //接收的丢包数
    private Long receiveFifo;           //接收的FIFO缓冲区错误数量
    private Long receiveFrame;          //接收的分组帧错误数量
    private Long receiveCompressed;     //接收的压缩数据包数量
    private Long receiveMulticast;      //接收的多播帧数

    private Long transmitBytes;        //发送的字节总数
    private Long transmitPackets;      //发送的数据包总数
    private Long transmitErrs;         //发送的错误总数
    private Long transmitDrop;         //发送的丢包数
    private Long transmitFifo;         //发送的FIFO缓冲区错误数量
    private Long transmitColls;        //发送的分组帧错误数量
    private Long transmitCarrier;      //载波损耗数量
    private Long transmitCompressed;   //发送的压缩数据包数量

    private Float receiveTotalMB;        //接收总流量 MB
    private Float TransmitTotalMB;       //发送总流量 MB
    private Float TotalMB;               //总流量 MB

    private Float netSpeed;              //网速 Mbps

    private Float netUsage;             //网络使用率
    private Float cpuUsage;              //cpu使用率

    private String currentSystemTime;    //当前系统时间

    private String livedTime;            //系统运行时长
    private Integer userNum;             //用户数量
    private Float loadAverage1;          //Cpu最近一分钟负载
    private Float loadAverage5;          //CPU最近5分钟负载
    private Float loadAverage15;         //CPU最近15分钟负载
    private String proccessStatus;       //“正在运行的进程数/总进程数”
    private Integer recentlyProccessID;  //最近运行的进程的ID
    private String loadAverage;          //CPU负载常规显示
    //磁盘io相关参数

    private Float iOUsage;                //各盘符中io使用率最大的；
    private String linuxCoreVersion;      //系统版本号
    private String hostNameFromIOCommand; //当前hostname
    private String systemType;            //系统类型，64位还是32位
    private Byte coreNum;                 //cpu核心数量
    private String systemTimeInChinese;   //中文格式系统时间
    private List<DiskNode> diskNode;      //各盘符使用情况
    //获取ip和hostname

    private String ip;                    //当前ip
    private String hostName;              //当前hostName
    //内存信息

    private Long memoryTotal;             //内存总量
    private Long memoryfree;              //内存剩余
    private Float memoryUsage;            //内存使用率
    private Long swapTotal;               //Swap总量
    private Long swapfree;                //Swap剩余
    private Float swapUsage;              //Swap使用率
    public Long getReceiveBytes() {
        return receiveBytes;
    }

    public void setReceiveBytes(Long receiveBytes) {
        this.receiveBytes = receiveBytes;
    }

    public Long getReceivePackets() {
        return receivePackets;
    }

    public void setReceivePackets(Long receivePackets) {
        this.receivePackets = receivePackets;
    }

    public Long getReceiveErrs() {
        return receiveErrs;
    }

    public void setReceiveErrs(Long receiveErrs) {
        this.receiveErrs = receiveErrs;
    }

    public Long getReceiveDrop() {
        return receiveDrop;
    }

    public void setReceiveDrop(Long receiveDrop) {
        this.receiveDrop = receiveDrop;
    }

    public Long getReceiveFifo() {
        return receiveFifo;
    }

    public void setReceiveFifo(Long receiveFifo) {
        this.receiveFifo = receiveFifo;
    }

    public Long getReceiveFrame() {
        return receiveFrame;
    }

    public void setReceiveFrame(Long receiveFrame) {
        this.receiveFrame = receiveFrame;
    }

    public Long getReceiveCompressed() {
        return receiveCompressed;
    }

    public void setReceiveCompressed(Long receiveCompressed) {
        this.receiveCompressed = receiveCompressed;
    }

    public Long getReceiveMulticast() {
        return receiveMulticast;
    }

    public void setReceiveMulticast(Long receiveMulticast) {
        this.receiveMulticast = receiveMulticast;
    }

    public Long getTransmitBytes() {
        return transmitBytes;
    }

    public void setTransmitBytes(Long transmitBytes) {
        this.transmitBytes = transmitBytes;
    }

    public Long getTransmitPackets() {
        return transmitPackets;
    }

    public void setTransmitPackets(Long transmitPackets) {
        this.transmitPackets = transmitPackets;
    }

    public Long getTransmitErrs() {
        return transmitErrs;
    }

    public void setTransmitErrs(Long transmitErrs) {
        this.transmitErrs = transmitErrs;
    }

    public Long getTransmitDrop() {
        return transmitDrop;
    }

    public void setTransmitDrop(Long transmitDrop) {
        this.transmitDrop = transmitDrop;
    }

    public Long getTransmitFifo() {
        return transmitFifo;
    }

    public void setTransmitFifo(Long transmitFifo) {
        this.transmitFifo = transmitFifo;
    }

    public Long getTransmitColls() {
        return transmitColls;
    }

    public void setTransmitColls(Long transmitColls) {
        this.transmitColls = transmitColls;
    }

    public Long getTransmitCarrier() {
        return transmitCarrier;
    }

    public void setTransmitCarrier(Long transmitCarrier) {
        this.transmitCarrier = transmitCarrier;
    }

    public Long getTransmitCompressed() {
        return transmitCompressed;
    }

    public void setTransmitCompressed(Long transmitCompressed) {
        this.transmitCompressed = transmitCompressed;
    }

    public Float getReceiveTotalMB() {
        return receiveTotalMB;
    }

    public void setReceiveTotalMB(Float receiveTotalMB) {
        this.receiveTotalMB = receiveTotalMB;
    }

    public Float getTransmitTotalMB() {
        return TransmitTotalMB;
    }

    public void setTransmitTotalMB(Float transmitTotalMB) {
        TransmitTotalMB = transmitTotalMB;
    }

    public Float getNetSpeed() {
        return netSpeed;
    }

    public void setNetSpeed(Float netSpeed) {
        this.netSpeed = netSpeed;
    }

    public Float getNetUsage() {
        return netUsage;
    }

    public void setNetUsage(Float netUsage) {
        this.netUsage = netUsage;
    }

    public Float getCpuUsage() {
        return cpuUsage;
    }

    public void setCpuUsage(Float cpuUsage) {
        this.cpuUsage = cpuUsage;
    }

    public String getCurrentSystemTime() {
        return currentSystemTime;
    }

    public void setCurrentSystemTime(String currentSystemTime) {
        this.currentSystemTime = currentSystemTime;
    }

    public String getLivedTime() {
        return livedTime;
    }

    public void setLivedTime(String livedTime) {
        this.livedTime = livedTime;
    }

    public Integer getUserNum() {
        return userNum;
    }

    public void setUserNum(Integer userNum) {
        this.userNum = userNum;
    }

    public Float getLoadAverage1() {
        return loadAverage1;
    }

    public void setLoadAverage1(Float loadAverage1) {
        this.loadAverage1 = loadAverage1;
    }

    public Float getLoadAverage5() {
        return loadAverage5;
    }

    public void setLoadAverage5(Float loadAverage5) {
        this.loadAverage5 = loadAverage5;
    }

    public Float getLoadAverage15() {
        return loadAverage15;
    }

    public void setLoadAverage15(Float loadAverage15) {
        this.loadAverage15 = loadAverage15;
    }

    public String getProccessStatus() {
        return proccessStatus;
    }

    public void setProccessStatus(String proccessStatus) {
        this.proccessStatus = proccessStatus;
    }

    public Integer getRecentlyProccessID() {
        return recentlyProccessID;
    }

    public void setRecentlyProccessID(Integer recentlyProccessID) {
        this.recentlyProccessID = recentlyProccessID;
    }

    public String getLoadAverage() {
        return loadAverage;
    }

    public void setLoadAverage(String loadAverage) {
        this.loadAverage = loadAverage;
    }

    public Float getiOUsage() {
        return iOUsage;
    }

    public void setiOUsage(Float iOUsage) {
        this.iOUsage = iOUsage;
    }

    public String getLinuxCoreVersion() {
        return linuxCoreVersion;
    }

    public void setLinuxCoreVersion(String linuxCoreVersion) {
        this.linuxCoreVersion = linuxCoreVersion;
    }

    public String getHostNameFromIOCommand() {
        return hostNameFromIOCommand;
    }

    public void setHostNameFromIOCommand(String hostNameFromIOCommand) {
        this.hostNameFromIOCommand = hostNameFromIOCommand;
    }

    public String getSystemType() {
        return systemType;
    }

    public void setSystemType(String systemType) {
        this.systemType = systemType;
    }

    public Byte getCoreNum() {
        return coreNum;
    }

    public void setCoreNum(Byte coreNum) {
        this.coreNum = coreNum;
    }

    public String getSystemTimeInChinese() {
        return systemTimeInChinese;
    }

    public void setSystemTimeInChinese(String systemTimeInChinese) {
        this.systemTimeInChinese = systemTimeInChinese;
    }

    public List<DiskNode> getDiskNode() {
        return diskNode;
    }

    public void setDiskNode(List<DiskNode> diskNode) {
        this.diskNode = diskNode;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Long getMemoryTotal() {
        return memoryTotal;
    }

    public void setMemoryTotal(Long memoryTotal) {
        this.memoryTotal = memoryTotal;
    }

    public Long getMemoryfree() {
        return memoryfree;
    }

    public void setMemoryfree(Long memoryfree) {
        this.memoryfree = memoryfree;
    }

    public Float getMemoryUsage() {
        return memoryUsage;
    }

    public void setMemoryUsage(Float memoryUsage) {
        this.memoryUsage = memoryUsage;
    }

    public Long getSwapTotal() {
        return swapTotal;
    }

    public void setSwapTotal(Long swapTotal) {
        this.swapTotal = swapTotal;
    }

    public Long getSwapfree() {
        return swapfree;
    }

    public void setSwapfree(Long swapfree) {
        this.swapfree = swapfree;
    }

    public Float getSwapUsage() {
        return swapUsage;
    }

    public void setSwapUsage(Float swapUsage) {
        this.swapUsage = swapUsage;
    }

    public Float getTotalMB() {
        return TotalMB;
    }

    public void setTotalMB(Float totalMB) {
        TotalMB = totalMB;
    }

    @Override
    public String toString() {
        return "ResourceUsageInfoBean{" + "\n" +
                "receiveBytes=" + receiveBytes + "\n" +
                ", receivePackets=" + receivePackets + "\n" +
                ", receiveErrs=" + receiveErrs + "\n" +
                ", receiveDrop=" + receiveDrop + "\n" +
                ", receiveFifo=" + receiveFifo + "\n" +
                ", receiveFrame=" + receiveFrame + "\n" +
                ", receiveCompressed=" + receiveCompressed + "\n" +
                ", receiveMulticast=" + receiveMulticast + "\n" +
                ", transmitBytes=" + transmitBytes + "\n" +
                ", transmitPackets=" + transmitPackets + "\n" +
                ", transmitErrs=" + transmitErrs + "\n" +
                ", transmitDrop=" + transmitDrop + "\n" +
                ", transmitFifo=" + transmitFifo + "\n" +
                ", transmitColls=" + transmitColls + "\n" +
                ", transmitCarrier=" + transmitCarrier + "\n" +
                ", transmitCompressed=" + transmitCompressed + "\n" +
                ", receiveTotalMB=" + receiveTotalMB + "\n" +
                ", TransmitTotalMB=" + TransmitTotalMB + "\n" +
                ", TotalMB=" + TotalMB + "\n" +
                ", netSpeed=" + netSpeed + "\n" +
                ", netUsage=" + netUsage + "\n" +
                ", cpuUsage=" + cpuUsage + "\n" +
                ", currentSystemTime='" + currentSystemTime + '\'' + "\n" +
                ", livedTime='" + livedTime + '\'' + "\n" +
                ", userNum=" + userNum + "\n" +
                ", loadAverage1=" + loadAverage1 + "\n" +
                ", loadAverage5=" + loadAverage5 + "\n" +
                ", loadAverage15=" + loadAverage15 + "\n" +
                ", proccessStatus='" + proccessStatus + '\'' + "\n" +
                ", recentlyProccessID=" + recentlyProccessID + "\n" +
                ", loadAverage='" + loadAverage + '\'' + "\n" +
                ", iOUsage=" + iOUsage + "\n" +
                ", linuxCoreVersion='" + linuxCoreVersion + '\'' + "\n" +
                ", hostNameFromIOCommand='" + hostNameFromIOCommand + '\'' + "\n" +
                ", systemType='" + systemType + '\'' + "\n" +
                ", coreNum=" + coreNum + "\n" +
                ", systemTimeInChinese='" + systemTimeInChinese + '\'' + "\n" +
                ", diskNode=" + diskNode + "\n" +
                ", ip='" + ip + '\'' + "\n" +
                ", hostName='" + hostName + '\'' + "\n" +
                ", memoryTotal=" + memoryTotal + "\n" +
                ", memoryfree=" + memoryfree + "\n" +
                ", memoryUsage=" + memoryUsage + "\n" +
                ", swapTotal=" + swapTotal + "\n" +
                ", swapfree=" + swapfree + "\n" +
                ", swapUsage=" + swapUsage + "\n" +
                '}';
    }


}
